Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comp:tabs): offset error when setting selectedKey #1236

Merged
merged 1 commit into from
Oct 29, 2022

Conversation

liuzaijiang
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

当存在滚动条时,首次设置selectedKey,无法滚动到相应位置

What is the new behavior?

功能正常

Other information

新增tabs时滚动位置由用户指定的selectedKey来决定偏移位置,内部不进行处理

@idux-bot
Copy link

idux-bot bot commented Oct 27, 2022

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Merging #1236 (5ced7e9) into main (677b163) will increase coverage by 0.01%.
The diff coverage is 81.81%.

❗ Current head 5ced7e9 differs from pull request most recent head c90ea23. Consider uploading reports for the commit c90ea23 to get more accurate results

@@            Coverage Diff             @@
##             main    #1236      +/-   ##
==========================================
+ Coverage   93.01%   93.03%   +0.01%     
==========================================
  Files         317      317              
  Lines       29136    29149      +13     
  Branches     3307     3307              
==========================================
+ Hits        27101    27118      +17     
+ Misses       2035     2031       -4     
Impacted Files Coverage Δ
packages/components/tabs/src/InternalTabs.tsx 78.20% <81.81%> (+1.93%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm
Copy link
Member

@liuzaijiang 测试挂了。

@danranVm danranVm merged commit 050a1f7 into IDuxFE:main Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants